﻿package rob.core{
	import rob.data.Vert3d;
	// directories etc. defined here
	
	public class Ini{		
		public var objDirectory:String = "obj/";
		public var filenames:Array = ["wall0"];
		public var stageQuality:String = "medium";
		public var frameRate:uint = 25;
		public var cameraPos:Vert3d = new Vert3d(0,1600,0);
		public var sz:Number = 800;
		private static var _instance = undefined;
		
		public function Ini():void{}
		
		public static function getTextureByName(name:String):Object{
			switch(name){
				case "roof0": 		return new tex_roof0_mc();
				//case "frontage0": 	return new tex_frontage0_mc();
				
				default:			return new tex_default_mc();
			}
		}
		
		public static function get instance():Ini{
			if(_instance == undefined) _instance = new Ini();
			return _instance;
		}
	}
}